<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>提交表单数据</title>
<style type="text/css">
h1 { color:red;} 
input{padding:6px 10px;}
form{
   border:3px double red;
   margin:10px 0;
   padding:0 10px;
}
</style>
</head>
<body>
<h1>提交表单数据</h1>
<p>from-表单</p>
<p>action-提交的表单数据由哪个页面来处理</p>

<form action="save.jsp" method="get">
   <p>GET方法提交</p>
   <p>姓名:<input type="text" name="xm"/></p>
   <p>年龄:<input type="text" name="age"/></p>
   <p><input type="submit" value="提交数据"/></p>
</form>

<form action="save.jsp" method="post">
   <p>POST方法提交</p>
   <p>姓名:<input type="text" name="xm"/></p>
   <p>年龄:<input type="text" name="age"/></p>
   <p><input type="submit" value="提交数据"/></p>
</form>
</body>
</html>